import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '../views/home/home'
import Manage from '../views/manage/manage'
import Plan from '../views/plan/plan'
import Datum from '../views/datum/datum'
import Recharge from '../views/recharge/recharge'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/home',
      name: 'Home',
      component: Home,
      class: "el-icon-setting",
      alias: "首页"

    },
    {
      path: '/manage',
      name: 'manage',
      component: Manage,
      class: "el-icon-setting",
      alias: "广告管理",
    },
    {
      path: '/plan',
      name: 'Plan',
      component: Plan,
      class: "el-icon-setting",
      alias: "广告投放计划"

    },
    {
      path: '/recharge',
      name: 'Recharge',
      component: Recharge,
      class: "el-icon-setting",
      alias: "充值记录"

    },
    {
      path: '/',
      redirect: {
        name: 'Home'
      }
    }

  ],
  'linkActiveClass': 'active',
  mode: 'history',
})
